package cn.jiyun.dao;

import cn.jiyun.pojo.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Update;

public interface OrderDao extends BaseMapper<Order> {
    @Delete("delete from tb_order where user_id=#{userId}")
    void deletee(Long userId);

    @Update("update tb_order set user_id=#{userId},name=#{name},price=#{price},num=#{num} where id=#{id}")
    void edit(Order order);
}
